Optimal. Leaf size=51 \[ \frac {1}{4} \sqrt {3-x} \sqrt {-2+x}-\frac {1}{2} (3-x)^{3/2} \sqrt {-2+x}-\frac {1}{8} \sin ^{-1}(5-2 x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 51, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.235, Rules used = {52, 55, 633,
222} \begin {gather*} -\frac {1}{8} \text {ArcSin}(5-2 x)-\frac {1}{2} \sqrt {x-2} (3-x)^{3/2}+\frac {1}{4} \sqrt {x-2} \sqrt {3-x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 52
Rule 55
Rule 222
Rule 633
Rubi steps
\begin {align*} \int \sqrt {3-x} \sqrt {-2+x} \, dx &=-\frac {1}{2} (3-x)^{3/2} \sqrt {-2+x}+\frac {1}{4} \int \frac {\sqrt {3-x}}{\sqrt {-2+x}} \, dx\\ &=\frac {1}{4} \sqrt {3-x} \sqrt {-2+x}-\frac {1}{2} (3-x)^{3/2} \sqrt {-2+x}+\frac {1}{8} \int \frac {1}{\sqrt {3-x} \sqrt {-2+x}} \, dx\\ &=\frac {1}{4} \sqrt {3-x} \sqrt {-2+x}-\frac {1}{2} (3-x)^{3/2} \sqrt {-2+x}+\frac {1}{8} \int \frac {1}{\sqrt {-6+5 x-x^2}} \, dx\\ &=\frac {1}{4} \sqrt {3-x} \sqrt {-2+x}-\frac {1}{2} (3-x)^{3/2} \sqrt {-2+x}-\frac {1}{8} \text {Subst}\left (\int \frac {1}{\sqrt {1-x^2}} \, dx,x,5-2 x\right )\\ &=\frac {1}{4} \sqrt {3-x} \sqrt {-2+x}-\frac {1}{2} (3-x)^{3/2} \sqrt {-2+x}-\frac {1}{8} \sin ^{-1}(5-2 x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 72, normalized size = 1.41 \begin {gather*} \frac {\sqrt {-6+5 x-x^2} \left (\sqrt {-2+x} \left (15-11 x+2 x^2\right )-\sqrt {-3+x} \tanh ^{-1}\left (\frac {1}{\sqrt {\frac {-3+x}{-2+x}}}\right )\right )}{4 (-3+x) \sqrt {-2+x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.17, size = 61, normalized size = 1.20
method | result | size |
default | \(\frac {\sqrt {3-x}\, \left (-2+x \right )^{\frac {3}{2}}}{2}-\frac {\sqrt {3-x}\, \sqrt {-2+x}}{4}+\frac {\sqrt {\left (-2+x \right ) \left (3-x \right )}\, \arcsin \left (2 x -5\right )}{8 \sqrt {-2+x}\, \sqrt {3-x}}\) | \(61\) |
risch | \(-\frac {\left (2 x -5\right ) \left (-3+x \right ) \sqrt {-2+x}\, \sqrt {\left (-2+x \right ) \left (3-x \right )}}{4 \sqrt {-\left (-3+x \right ) \left (-2+x \right )}\, \sqrt {3-x}}+\frac {\sqrt {\left (-2+x \right ) \left (3-x \right )}\, \arcsin \left (2 x -5\right )}{8 \sqrt {-2+x}\, \sqrt {3-x}}\) | \(76\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.48, size = 38, normalized size = 0.75 \begin {gather*} \frac {1}{2} \, \sqrt {-x^{2} + 5 \, x - 6} x - \frac {5}{4} \, \sqrt {-x^{2} + 5 \, x - 6} + \frac {1}{8} \, \arcsin \left (2 \, x - 5\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.71, size = 52, normalized size = 1.02 \begin {gather*} \frac {1}{4} \, {\left (2 \, x - 5\right )} \sqrt {x - 2} \sqrt {-x + 3} - \frac {1}{8} \, \arctan \left (\frac {{\left (2 \, x - 5\right )} \sqrt {x - 2} \sqrt {-x + 3}}{2 \, {\left (x^{2} - 5 \, x + 6\right )}}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 1.83, size = 124, normalized size = 2.43 \begin {gather*} \begin {cases} - \frac {i \operatorname {acosh}{\left (\sqrt {x - 2} \right )}}{4} + \frac {i \left (x - 2\right )^{\frac {5}{2}}}{2 \sqrt {x - 3}} - \frac {3 i \left (x - 2\right )^{\frac {3}{2}}}{4 \sqrt {x - 3}} + \frac {i \sqrt {x - 2}}{4 \sqrt {x - 3}} & \text {for}\: \left |{x - 2}\right | > 1 \\\frac {\operatorname {asin}{\left (\sqrt {x - 2} \right )}}{4} - \frac {\left (x - 2\right )^{\frac {5}{2}}}{2 \sqrt {3 - x}} + \frac {3 \left (x - 2\right )^{\frac {3}{2}}}{4 \sqrt {3 - x}} - \frac {\sqrt {x - 2}}{4 \sqrt {3 - x}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 2.26, size = 42, normalized size = 0.82 \begin {gather*} \frac {1}{4} \, {\left (2 \, x + 3\right )} \sqrt {x - 2} \sqrt {-x + 3} - 2 \, \sqrt {x - 2} \sqrt {-x + 3} + \frac {1}{4} \, \arcsin \left (\sqrt {x - 2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.21, size = 41, normalized size = 0.80 \begin {gather*} \left (\frac {x}{2}-\frac {5}{4}\right )\,\sqrt {x-2}\,\sqrt {3-x}-\frac {\ln \left (x-\frac {5}{2}-\sqrt {x-2}\,\sqrt {3-x}\,1{}\mathrm {i}\right )\,1{}\mathrm {i}}{8} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________